package com.why.cachecloud.client.spectator.config;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

@ConfigurationProperties(prefix = "why.components.cachecloud")
@Component
@Data
public class CacheCloudConfig {

    /**
     * 应用id
     */
    private Long appId;

    /**
     * 应用密码
     */
    private String password;

    /**
     * redis主从模式：cluster、sentinel
     */
    private String model;

    /**
     * cachecloud 域名
     */
    private String domainName;

    /**
     * 客户端版本
     */
    private String clientVersion = "1.0.0-RESEASE";

    /**
     * http 连接超时时间
     */
    private Integer httpConnTimeout = 3000;
    /**
     * http socket 超时时间
     */
    private Integer httpSocketTimeout = 5000;

}
